package ycl.base.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import ycl.common.constants.BaseConstant;
import ycl.common.models.BaseEntityRes;

import java.time.LocalDateTime;


/**
 * 用户文件管理响应体
 *
 * @author ycl
 * @date 2022/6/25 0025 1:10:50
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("用户文件管理响应体")
public class UserFilesRes extends BaseEntityRes {
	
	private static final long serialVersionUID = -1L;


	@Schema(description = "用户id")
	private Long userId;

	@Schema(description = "文件名")
	private String name;

	@Schema(description = "文件后缀")
	private String suffix;

	@Schema(description = "文件大小, 单位B")
	private Long fileSize;


	@Schema(description = "创建时间")
	@JsonFormat(pattern = BaseConstant.DATE_TIME_PATTERN)
	private LocalDateTime createTime;

	@Schema(description = "是否违规, 1是, 0否")
	private Boolean violation;

	@Schema(description = "备注")
	private String remark;
}
